<?php

namespace App\Validates\Admin;
class AdminController
{
	public function notices()
	{
		 return [
            'rules' => [
               'title'=>'required',
               'content'=>'required',
            ],
            'messages' => [
                'title.required'=>'标题不能为空',
                'content.required'=>'内容不能为空',
            ]
        ];
	}
  public function news()
  {
     return [
            'rules' => [
               'title'=>'required',
               'content'=>'required',
               'images'=>'required',
               'cate'=>'required'
            ],
            'messages' => [
                'title.required'=>'标题不能为空',
                'content.required'=>'内容不能为空',
                'images.required'=>'图片不能为空',
                'cate.required'=>'类别未选择'
            ]
        ];
  }

}